<?php

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport('joomla.application.component.model');

class ServersModelServers extends JModel
{
    /**
     * Servers data array
     */
    var $_data;

    /**
     * Returns the query
     */
    function _buildQuery()
    {
        $query = ' SELECT s.* '
            . ' FROM #__server as s ';

        return $query;
    }

    /**
     * Retrieves the  data
     * Array of objects containing the data from the database
     */
    function getData()
    {
        // Lets load the data if it doesn't already exist
        if (empty($this->_data)) {
            $query = $this->_buildQuery();
            $this->_data = $this->_getList($query);
        }

        return $this->_data;
    }

}
